<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><s:if test="surveySubject.subjectId==null"><s:text name="surveySubject.add.title"/></s:if><s:else><s:text name="surveySubject.edit.title"/></s:else></title>
	<%@ include file="/common/meta.jsp"%>
	<%@ include file="/common/common.jsp"%>
</head>
<body>
<div id="wrapper">
	<div class="curmb"><s:text name="your.site.position"/>:<a href="${ctx}/main.action"><s:text name="homepage"/></a><span>></span><s:text name="surveySubject.title"/></div>
	<div class="listtit"><p><span><strong><s:if test="surveySubject.subjectId==null"><s:text name="surveySubject.add.title"/></s:if><s:else><s:text name="surveySubject.edit.title"/></s:else></strong></span></p></div>
	<div class="listadd">
		<s:form action="surveysubject-save" onsubmit="return chkform()">
		<s:hidden name="surveySubject.subjectId"/>
		<s:hidden name="surveyId" id="sursubId"/>
		<s:hidden name="flag" id="flag"/>
		<table class="addgrid">
			<tr>
				<th><s:text name="surveySubject.subjectTitle"/>:</th>
				<td><s:textfield name="surveySubject.subjectTitle" required="true" requiredposition="right" cssClass="txtin"/></td>
			</tr>
			<tr>
				<th><s:text name="surveySubject.subjectCheckModel"/>:</th>
				<td>
					
						<s:select name="surveySubject.subjectCheckModel" list="dicSurveyCheckType" listKey="dictionaryKey" listValue="dictionaryValue" value="surveySubject.subjectCheckModel" cssClass="selectClass"/>
					
				</td>
			</tr>
			<tr>
				<th><s:text name="surveySubject.subjectOther"/>:</th>
				<td><s:textfield name="surveySubject.subjectOther" required="true" requiredposition="right" cssClass="txtin"/></td>
			</tr>
			<tr>
				<th><s:text name="surveySubject.ord"/>:</th>
				<td><s:textfield name="surveySubject.ord" required="true" requiredposition="right" cssClass="txtin"/></td>
			</tr>
			<tr>
				<th>&nbsp;</th>
				<td><s:submit value="%{getText('save')}" cssClass="btnlist2"/><s:submit value="%{getText('继续添加')}" onclick="goNextAdd()" cssClass="btnlist4"/><s:reset value="%{getText('reset')}" cssClass="btnlist2"/>
					<s:reset value="%{getText('返回')}" cssClass="btnlist2" onclick="goBack()"/>
				</td>
			</tr>
		</table>
		</s:form>
	</div>
</div>
</body>
</html>
<script type="text/javascript" defer="defer">

	var sursubId = $("#sursubId").val();
	$(function(){
		$("#go_next_btn").click(goNextAdd);
	});
	
	function goNextAdd(){
		$("#flag").val("sur");
	}
	function goBack(){
		window.history.go(-1);
	}
	function chkform(){
		
	}
</script>